package com.ibeeking.found.open.api.common.query;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @ClassName CartCampaignQuery
 * @Description 购物车活动查询
 * @Author ibeeking
 * @Date 2020-11-18 9:48
 **/
@Data
public class ConfirmOrderGoodsQuery implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 渠道
     */
    @NotNull(message = "渠道不能为空")
    private Integer channel;

    /**
     * 店铺id
     */
    @NotNull(message = "店铺id不能为空")
    private Long shopId;

    private Long cartId;

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空")
    private Long goodsId;

    /**
     * 商品skuID
     */
    @NotNull(message = "商品skuId不能为空")
    private Long goodsSkuId;

    /**
     * 商品数量
     */
    @NotNull(message = "商品数量不能为空")
    private Integer qty;

    /**
     * 商品单价，分
     */
    @NotNull(message = "商品单价不能为空")
    private BigDecimal price;

    /**
     * 积分
     */
    private Integer points;

    /**
     * 参与活动id
     */
    private Long campaignId;
}
